import request from '@/utils/request'

// 查询粉尘数据列表
export function listPmdata(query) {
  return request({
    url: '/environment/pmdata/list',
    method: 'get',
    params: query
  })
}

// 查询粉尘数据详细
export function getPmdata(id) {
  return request({
    url: '/environment/pmdata/' + id,
    method: 'get'
  })
}

// 新增粉尘数据
export function addPmdata(data) {
  return request({
    url: '/environment/pmdata',
    method: 'post',
    data: data
  })
}

// 修改粉尘数据
export function updatePmdata(data) {
  return request({
    url: '/environment/pmdata/editById',
    method: 'post',
    data: data
  })
}

// 删除粉尘数据
export function delPmdata(id) {
  return request({
    url: '/environment/pmdata/deleteByIds',
    method: 'post',
    data: {
        ids:id
    }
  })
}
